package com.caltco.cargo.ops.modules.sys.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.caltco.cargo.ops.common.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.sql.Date;

@Data
public class DailyStatisticsByModelVO extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "Id")
    private Long id;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "统计日期")
    private Date date;

    @Schema(description = "学习单词")
    private Integer learnWord;

    @Schema(description = "正确单词")
    @TableField("current_word")
    @JsonProperty("currentWord")
    private Integer currentWord;

    @Schema(description = "错误单词")
    @TableField("error_word")
    @JsonProperty("errorWord")
    private Integer errorWord;

    @Schema(description = "学习时间")
    @TableField("study_time")
    @JsonProperty("studyTime")
    private Integer studyTime;
}
